package it.prova.uml.edit;

import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jst.pagedesigner.dom.IDOMPosition;


@SuppressWarnings("restriction")
public abstract class AbstractDropCustomizer implements IDropCustomizer {

	/* (non-Javadoc)
     * @see org.eclipse.jst.pagedesigner.itemcreation.customizer.IDropCustomizer#getDropCustomizationData()
     */
    public IAdaptable getDropCustomizationData() 
    {
        return null;
    }

    /* (non-Javadoc)
     * @see org.eclipse.jst.pagedesigner.itemcreation.customizer.IDropCustomizer#runCustomizer()
     */
    public IStatus runCustomizer() 
    {
        return Status.OK_STATUS;
    }
    
    public IStatus runCustomizer(final IFile file, final IDOMPosition position)
    {
        // backward compatibility: call the deprecated method to ensure that
        // existing users are not broken
        return runCustomizer();
    }

}
